#ifndef SIM800L_H
#define SIM800L_H
#include "bsp_system.h"

#define SIM_ENABLE 1
#define SIM_DISABLE 0
#define SIM_OK 1
#define SIM_ERROR 0
typedef struct
{
    uint8_t receiveDataFlag; // 接收数据标志位
    uint16_t error_code;     // 无线模块初始化错误代码
} SIM_TypeDef;
void sim_clear_buffer(void);
void sim800l_receive_callback(uint8_t byte);
uint8_t sim800l_dial_attempt(void);
void sim800l_init(void);
void sim800l_dial(void);
uint8_t SIM_get_receive_flag(void);
void sim800l_send_message(void);
#endif
